import { NzSafeAny } from "ng-zorro-antd/core/types";

// https://angular.io/guide/styleguide#style-04-12
export function throwIfAlreadyLoaded(parentModule: NzSafeAny, moduleName: string): void {
  if (parentModule) {
    throw new Error(`${moduleName} has already been loaded. Import Core modules in the AppModule only.`);
  }
}
